#include "cmd_parser.h"
#include "cmd_basics.h"
#include "cmd_var.h"
#include "cmd_bind.h"
#include "core_searchTree.h"
#include <windows.h>
#include <stdio.h>

void main()
{
	cmd_init();
	cmd_registerBasicCommands();
	cmd_initBind();

	cmd_initVar();

	cmd_parseFile("test.cfg");


//	cmd_setVar("test",1);
/*	printf("%.5g\n",cmd_getVar("test"));
	cmd_setVar("test",2);
	printf("%.5g\n",cmd_getVar("test"));
	cmd_setVar("test",5);
	printf("%.5g\n",cmd_getVar("test"));
	cmd_setVar("tert",2);
	printf("%.5g\n",cmd_getVar("tert"));
	cmd_setVar("test",2);
	printf("%.5g\n",cmd_getVar("test"));
*/
	cmd_keyDown('B');
	cmd_keyUp('B');

	cmd_shutdownBind();
	cmd_shutdownVar();
	cmd_shutdown();
}